package com.fenghongzhang.day014;

import android.graphics.drawable.Drawable;

/**
 * 用构造者的方式来创建这个类.
 *
 */
public class MyItem  {
    private String name;
    private Drawable drawable;

    public MyItem() {
    }

    public MyItem(String name, Drawable drawable) {
        this.name = name;
        this.drawable = drawable;
    }

    public String getName() {
        return name;
    }

    public MyItem setName(String name) {
        this.name = name;
        return this;
    }

    public Drawable getDrawable() {
        return drawable;
    }

    public MyItem setDrawable(Drawable drawable) {
        this.drawable = drawable;
        return this;
    }
}
